@import '../../style/variable.less';

.drawer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    .inner {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 999;
        background-color: @bg-color;
        width: 80%;
        transform: translateX(-100rem);
        transition: all 0.3s ease;
        background-color: #fff;
        .inner-box{
            overflow: scroll;
            height: 100%;
            &::-webkit-scrollbar{ border: 0; }
        }
        .header{
            padding: 3rem 0 4rem 0;
            background-color: #EBEBEB;
            .login{
                padding: 0 1.5rem;
                .avatar{
                    margin-bottom: 0.6rem;
                    img{
                        width: 5rem;
                        height: 5rem;
                        object-fit: cover;
                        border-radius: 50%;
                    }
                }
                .nickname{
                    color: #333;
                    font-size: 1.2rem;
                    margin-right: 1rem;
                    font-weight: bold;
                }
                .level{
                    color: #999;
                    font-size: 0.9rem;
                    background-color: #ccc;
                    padding: 0.2rem 0.8rem;
                    border-radius: 1rem;
                }
                .integral-box{
                    flex: 1;
                    .integral{
                        color: #fff;
                        font-size: 0.8rem;
                        background-color: @main-color;
                        border-radius: 1rem;
                        padding: 0.4rem 0.8rem;
                        width: 3rem;
                        text-align: center;
                        img{
                            width: 1rem;
                            height: auto;
                            margin-right: 0.4rem;
                        }
                    }
                }
            }
            .unlogin{
                .title{
                    color: #666;
                    font-size: 1rem;
                    text-align: center;
                    margin-bottom: 0.5rem;
                }
                .login-btn{
                    width: 8rem;
                    color: #666;
                    font-size: 1rem;
                    margin: 1.5rem auto;
                    display: block;
                    background: none;
                    border-radius: 2rem;
                    border: 0.1rem solid #ccc;
                    padding: 0.5rem 0;
                    text-align: center;
                }
            }
        }
        .openVip{
            width: 90%;
            margin: -1.5rem auto 0 auto;
            background: linear-gradient(#121212, #373737);
            border-radius: 0.5rem;
            padding: 0.8rem 1rem;
            box-sizing: border-box;
            box-shadow: 0 0.5rem 1rem 0.1rem #ccc;
            .price{
                padding-right: 1.5rem;
                position: relative;
                &::after{
                    position: absolute;
                    top: 0.2rem;
                    right: 0;
                    width: 0.1rem;
                    height: 2rem;
                    content: '';
                    background-color: #fff;
                }
                .name{
                    color: #D8C0BD;
                    font-size: 0.9rem;
                    margin-bottom: 0.5rem;
                }
                .explain{
                    color: #fff;
                    font-size: 0.6rem;
                }
            }
            .title{
                color: #fff;
                font-size: 0.9rem;
                flex: 1;
                text-align: right;
            }
            .coverImg{
                width: 2.4rem;
                height: 2.4rem;
                object-fit: cover;
                border-radius: 50%;
                margin-left: 1rem;
            }
        }
        .nav{
            padding-bottom: 1.5rem;
            margin: 2.5rem 1rem 1rem 1rem;
            border-bottom: 0.1rem solid #f4f4f4;
            .nav-item{
                flex: 1;
                .icon{
                    width: 2rem;
                    height: auto;
                    margin-bottom: 0.6rem;
                }
                .name{
                    color: #333;
                    font-size: 0.9rem;
                    font-weight: bold;
                }
            }
        }
        .tool-ul{
            background-color: #fff;
            padding: 1rem 1rem 4rem 1.5rem;
            .tool-li{
                padding: 1rem 0;
                .icon{
                    width: 1.6rem;
                    height: auto;
                    margin-right: 1rem;
                }
                .name{
                    color: #333;
                    font-size: 1rem;
                    flex: 1;
                }
                .explain{
                    color: #666;
                    font-size: 0.9rem;
                    margin-right: 1rem;
                }
                .explainImg{
                   width: 2rem;
                   height: 2rem;
                   object-fit: cover;
                   border-radius: 50%; 
                }
            }
        }
        .footer{
            background-color: #fff;
            border-top: 0.1rem solid #f4f4f4;
            padding: 1rem 1.5rem;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
            .footer-item{
                &:first-of-type{ flex: 1; }
                &:last-of-type{ margin-left: 2rem; }
                .icon{
                    width: 1.6rem;
                    height: auto;
                    margin-right: 0.5rem;
                }
                .name{
                    color: #333;
                    font-size: 1rem;
                    flex: 1;
                }
            }
        }
    }
}